package com.unittec.drainage.sdk.manage.vo;

import com.alibaba.fastjson.JSONArray;
import com.unittec.drainage.sdk.root.domain.DomainRoot;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class RegionTreeVo extends DomainRoot implements Serializable,Comparable<RegionTreeVo> {

    private static final long serialVersionUID = 8364586034115864796L;

    /**
     * 父级id
     */
    private String parentId;

    /**
     * 区域名称
     */
    private String name;

    /**
     * 区域颜色
     */
    private String colour;

    /**
     * 排序
     */
    private Short sort;

    /**
     * 起始显示级别
     */
    private Short zooms;

    /**
     * 终止显示级别
     */
    private Short zoome;

    /**
     * 类型(1=水系分区，2=行政分区)
     */
    private String type;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 坐标
     */
    private List<JSONArray> coordinatesList;

    /**
     * 子元素
     */
    private List<RegionTreeVo> children;

    @Override
    public int compareTo(RegionTreeVo o) {
        return this.getSort().compareTo(o.getSort());
    }
}
